
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class RangeType extends Type {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getRangeTypeType();
	}
	
	protected Expression from;
	protected Expression to;
	
	public RangeType(Span span, Expression from,Expression to) {
		super(span);
		this.from = from;
		this.to = to;
	}
	
	
	public Expression getFrom() {
		return from;
	}
	
	public void setFrom(Expression from) {
		this.from = from;
	}
	
	public Expression getTo() {
		return to;
	}
	
	public void setTo(Expression to) {
		this.to = to;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitRangeType(this);
	}
}
